<template>
    <div id="notice-detail">
        <div class="detail-content">
            <div>{{item.title}}</div>
            <div>{{item.updateTime}}</div>
            <p v-html="item.content"></p>
        </div>
    </div>
</template>
<script>
import api from '../../api'
import utils from '../../utils'
export default {
  data () {
    return {
      item: {}
    }
  },
  components: {
  },
  created () {
    window.document.title = '公告详情'
    var params = {
      id: utils.getQueryString('notice_id')
    }
    api.noticedetail(params).then(res => {
      console.log(res)
      this.item = res.data
    })
    utils.jssdkwx(api, this.$wechat, this.$store)
  }
}
</script>
